package com.homework.Pets;

public abstract class Pets {
    protected String name;
    protected int age;
    protected int health;
    protected int love;

    public Pets(String name, int age, int health, int love) {
        this.name = name;
        this.age = age;
        this.health = health;
        this.love = love;
    }

    public Pets() {
    }
    public void show(){
        System.out.println("姓名：" + this.name);
        System.out.println("年龄：" + this.age);
        System.out.println("健康值：" + this.health);
        System.out.println("喜爱度：" + this.love);
    }
    public abstract void eat();
    public abstract void toHospital();
    public abstract void play();
}
